package Chapter4;

/**
 * @author 郑静丽
 * @since 2025/4/22 08:31
 */
public class BorrowableBook extends Book {

    int number;

public BorrowableBook(String title, String author, String press, String ISBN, double price, int number) {
        //***********Begin************
        //先调用父类构造函数，再初始化number
    super(title,author,press,ISBN,price);
    this.number=number;


        //************End*************
    }


    //***********Begin************
    //重写父类的printInfo()成员函数
    public void printlnfo(){
    System.out.println(title+"\t"+author+"\t"+press+"\t"+price+"\t"+number);
    }

    //************End*************

}

